<?xml version="1.0" encoding="UTF-8"?>
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	template="/WEB-INF/templates/template.xhtml">
	<ui:define name="content">
		<h:form id="addPostForm">
		    <div id="inputForm">
			<h1>Paciente</h1>
				<div class="property">
					<h:outputText value="Nome" styleClass="formCaption" />
					<h:inputText value="#{pacienteBean.paciente.nome}" id="nome" />
					<h:message for="nome" styleClass="errorMessage" />
				</div>
			</div>
			<h:inputHidden value="#{pacienteBean.paciente.id}" />
			<h:commandButton action="#{pacienteBean.edit}" value="Salvar" /> 
			<br />
			<hr />
			<h:outputLink value="home.jsf">
				Voltar
			</h:outputLink>
		</h:form>
	</ui:define>
</ui:composition>
